@istest
public class Test_LeadConversions {

public static testMethod void testLeadConversions(){
PageReference pageRef = Page.LeadConversionOptions;
Test.setCurrentPage(pageRef);
Country__C co = new Country__c(Country_Code_2__c='23',Active__c=true,Economic_Grouping__c='HJJ',Language_Code__C='33');
 insert co;
 
Campus__c objCampus = new Campus__c(Name='Chandler 123456 Campus',recordtypeid=Schema.Sobjecttype.Campus__C.getRecordTypeInfosByName().get('West - Campus').getRecordTypeId(),Active__c=true);
insert objCampus;
 
  /****Accessing RecordTypeInfo****/
      String programRecordType = Schema.Sobjecttype.Program__c.getRecordTypeInfosByName().get('West - Program').getRecordTypeId();
      
      /****Creating Program****/
      Program__c programName = new Program__C(name='Bachelor of Science in Accounting 1232456', RecordTypeId=programRecordType );
      insert programName;
 
Lead l=new Lead();
l.firstname='John';
l.HasOptedOutOfEmail=false;
l.lastname='Coppedge';
l.Personal_Email__c='john@john.com';
l.Other_Email__c='john@john.com';
l.Other_Email_2__c='john@john.com';
l.status='Appointment';
l.street='test';
l.state='CA';
l.city='santa clara';
l.postalcode='95051';
l.country='United States';
l.Country_of_Birth__c = co.Id;
l.Country_of_Birth_Text__c='Mexico';
//l.Country_of_Residence_Text__c='Mexico';
//l.Mode_Text__c = 'test';
l.Campus_Text__c = 'Chandler Campus' ;
l.campus__c = objCampus.id;
l.Program__c = programName.id;
l.Program_Text__c = 'Accountancy Certificate';
l.Enrollment_Counselor_Lead_Finder_Text__c ='test';
l.Employer_Text__c = 'Axtel';
l.RecordTypeId = Schema.Sobjecttype.Lead.getRecordTypeInfosByName().get('West - Prospective Student').getRecordTypeId();
l.Work_Phone__c='(801) 555-5556';

insert l;

Account a=new Account();
a.FirstName='john';
a.Description='this is a test';
a.lastName='Coppedge';
a.Personal_Email__pc='john@john.com';
a.PersonLeadSource='web';
a.PersonTitle='Doctor';
a.Phone='1801555-5556';
a.Website='http://www.osxgnu.org/';
a.Work_Phone__pc='(801) 555-5556';

insert a;

test.starttest();
ApexPages.currentPage().getParameters().put('LeadID',l.id);
ApexPages.currentPage().getParameters().put('act_id',a.id);
LeadConversionOptions lcp=new LeadConversionOptions();
lcp.getCustomleadID();
lcp.getcustomAccountID();
lcp.isOppty=False;
lcp.getItems();
lcp.option='option1';
lcp.getSelected();
LeadConversionOptions lcpp=new LeadConversionOptions();
lcpp.getCustomleadID();
lcpp.getcustomAccountID();
lcpp.isOppty=True;
lcpp.getItems();
lcpp.option='option2';
lcpp.getSelected();

test.stoptest();
}

}